package com.jjb.www.http.api;

import com.hjq.http.config.IRequestApi;

/**
 *    author : Android CRG
 *    github : https://github.com/getActivity/AndroidProject
 *    time   : 2019/12/07
 *    desc   : 获取用户信息
 */
public final class UserInfoApi implements IRequestApi {
    private String user_id;

    public UserInfoApi setUser_id(String user_id) {
        this.user_id = user_id;
        return this;
    }

    @Override
    public String getApi() {
        return "/api/user/v2/common/get_user_token";
    }

    public static class Bean {

        private String token;
        private UserDTO user;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public UserDTO getUser() {
            return user;
        }

        public void setUser(UserDTO user) {
            this.user = user;
        }

        public static class UserDTO {
            private Integer id;
            private String mobile;
            private String nickname;
            private Integer avatar_id;
            private String openid;
            private String unionid;
            private Integer reg_time;
            private Integer sex;
            private Integer is_auth;
            private Integer sentry_id;
            private Integer message_count;
            private String only_str;
            private String img;
            private String real_name;
            private String id_card;
            private Integer scene_img;
            private Integer id_card_img;
            private String scene_img_url;
            private String id_card_img_url;
            private Integer is_member;
            private Integer member_end_time;
            private String sentry_name;
            private String pid_name;
            private String photo_url;

            public String getPhoto_url() {
                return photo_url;
            }

            public void setPhoto_url(String photo_url) {
                this.photo_url = photo_url;
            }

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public Integer getAvatar_id() {
                return avatar_id;
            }

            public void setAvatar_id(Integer avatar_id) {
                this.avatar_id = avatar_id;
            }

            public String getOpenid() {
                return openid;
            }

            public void setOpenid(String openid) {
                this.openid = openid;
            }

            public String getUnionid() {
                return unionid;
            }

            public void setUnionid(String unionid) {
                this.unionid = unionid;
            }

            public Integer getReg_time() {
                return reg_time;
            }

            public void setReg_time(Integer reg_time) {
                this.reg_time = reg_time;
            }

            public Integer getSex() {
                return sex;
            }

            public void setSex(Integer sex) {
                this.sex = sex;
            }

            public Integer getIs_auth() {
                return is_auth;
            }

            public void setIs_auth(Integer is_auth) {
                this.is_auth = is_auth;
            }

            public Integer getSentry_id() {
                return sentry_id;
            }

            public void setSentry_id(Integer sentry_id) {
                this.sentry_id = sentry_id;
            }

            public Integer getMessage_count() {
                return message_count;
            }

            public void setMessage_count(Integer message_count) {
                this.message_count = message_count;
            }

            public String getOnly_str() {
                return only_str;
            }

            public void setOnly_str(String only_str) {
                this.only_str = only_str;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public String getReal_name() {
                return real_name;
            }

            public void setReal_name(String real_name) {
                this.real_name = real_name;
            }

            public String getId_card() {
                return id_card;
            }

            public void setId_card(String id_card) {
                this.id_card = id_card;
            }

            public Integer getScene_img() {
                return scene_img;
            }

            public void setScene_img(Integer scene_img) {
                this.scene_img = scene_img;
            }

            public Integer getId_card_img() {
                return id_card_img;
            }

            public void setId_card_img(Integer id_card_img) {
                this.id_card_img = id_card_img;
            }

            public String getScene_img_url() {
                return scene_img_url;
            }

            public void setScene_img_url(String scene_img_url) {
                this.scene_img_url = scene_img_url;
            }

            public String getId_card_img_url() {
                return id_card_img_url;
            }

            public void setId_card_img_url(String id_card_img_url) {
                this.id_card_img_url = id_card_img_url;
            }

            public Integer getIs_member() {
                return is_member;
            }

            public void setIs_member(Integer is_member) {
                this.is_member = is_member;
            }

            public Integer getMember_end_time() {
                return member_end_time;
            }

            public void setMember_end_time(Integer member_end_time) {
                this.member_end_time = member_end_time;
            }

            public String getSentry_name() {
                return sentry_name;
            }

            public void setSentry_name(String sentry_name) {
                this.sentry_name = sentry_name;
            }

            public String getPid_name() {
                return pid_name;
            }

            public void setPid_name(String pid_name) {
                this.pid_name = pid_name;
            }
        }
    }
}